<?php
require_once 'includes/config.php';
require_once 'includes/functions.php';

$qty = $_POST['qty'];
$id = $_POST['id'];

$sql=mysql_query("update tempcart set qty='".$qty."' where tempid='".$id."'");
if($sql)
{
        echo "Record updates successfully";
}
else
{
        echo "Record was not updates .";
}
?>